package model

type Stock struct {
	ID      uint   `gorm:"primarykey"`
	Goods   string `gorm:"type:varchar(20);index; comment:商品id"`
	Stocks  int32  `gorm:"type:int; comment:库存"`
	Version int32  `gorm:"type:int; comment:乐观锁"`
}
